

'''
from core.graph import Pipeline
from core import cmds


def Create_Maya_References_Pipeline():
    MayaRefPipe = Pipeline(name="Find Maya References")
    
    maya_files = ni.FindFiles(name="Find Maya Files", extentions=['ma'], recursive=True)
    maya_refs = ni.FindMayaReferences(name="Maya References")
    for_each_file = ni.ForEach(name="For Each Maya File")
    tree = ni.TreeBuilder(name="Tree of References")
    
    MayaRefPipe.add_nodes(maya_files, for_each_file, maya_refs, tree)
    
    MayaRefPipe.connect(maya_files, "files", for_each_file, "list")
    MayaRefPipe.connect(for_each_file, "item", maya_refs, "mafile")
    MayaRefPipe.connect(maya_refs, "references", tree, "children")
    MayaRefPipe.connect(for_each_file, "item", tree, "parent")
    
    FilesPipe = Pipeline(name="File in Folder")
    FilesPipe.add_nodes(ni.FindFiles(name="Find Files"))

'''
